package l.l.w.网易2018实习.迷路的牛牛;

/**
 * Created by llw on 2018/3/28/0028.
 */
import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        char[] dir = {'N','W','S','E'};
        int cur = 0;
        String str = scanner.next("[LR]*");
        for(int i = 0; i < str.length(); ++i){
            char c = str.charAt(i);
            switch(c){
                case 'L' : cur++;break;
                case 'R': {
                    cur--;
                    if(cur < 0)cur = 3;
                    break;
                }
                default:break;
            }
        }
        System.out.println(dir[cur%4]);

    }
}